/**
 * UpdateFlightTask.java
 * Jan 10, 2010
 */
package com.dlplay.flightinfo.server.resource;

import java.util.Date;

import org.restlet.representation.EmptyRepresentation;
import org.restlet.representation.Representation;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;

import com.dlplay.flightinfo.core.PeriodManager;

/**
 * @author zhao yu
 *
 */
public class UpdateFlightTask extends ServerResource {
	
	@Get
	public Representation updateFlight()
	{
		getLogger().info("updateFlight "+new Date());
		PeriodManager.getInstance().updateFlights();
		return new EmptyRepresentation();
	}

}
